<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:cc="http://java.sun.com/jsf/composite/customcomponents"
	contentType="text/html">
	
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title><h:outputText value="#{label['ExampleFunctions.title']} - #{label['appNameTitle']}"/></title>
		<style>
			.panelGridCenter {
	    		margin: 0 auto;
			}		
		</style>
	</h:head>	
	<h:body>
		<cc:LatamHeader userInfo="true">
			<cc:AppHeaderMenu/>
		</cc:LatamHeader>
		<p:panel styleClass="latam_body_panel">			
			<h:form>
				<p:fieldset legend="Flash Context">
					<p:panel styleClass="no-border">
						<p:panelGrid columns="1" styleClass="panelGridCenter">
							<p:outputLabel value="#{label['ExampleFunctions.flash.received']}"/>
							<p:outputLabel value="#{exampleFlashScopeReceiver.theObjectFromOtherPage}" style="font-weight:900; color: red; font-size:250%;"/>
						</p:panelGrid>
						<p:panelGrid columns="2" styleClass="panelGridCenter">
							<p:commandButton value="#{label['ExampleFunctions.flash.back']}" action="#{exampleFlashScopeReceiver.back}"/>
						</p:panelGrid>
					</p:panel>
				</p:fieldset>						
			</h:form>
		</p:panel>
		<cc:LatamFooter/>
	</h:body>
</f:view>